package com.itheima.health.dao;

import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 预约DAO
 */
public interface OrderDao {
    List<Map<String, Object>> countBySetMeal();
    Integer setmealCount(Integer id);
    Integer selectByOrderDate(String dateNow);
    List<Map<String,Object>> countByHotSetMeal(@Param("topN") int topN);
    Integer selectByOrderDateAndStatus(String dateNow);
    List<Map> hotSetmeal();
    void findOrderDetail(String name);

    Order selectById(Integer id);

    long countByMemberAndDateAndSetMeal(@Param("memberId") Integer memberId, @Param("orderDate") Date orderDate, @Param("setmealId") Integer setmealId);

    void insert(Order order);


    Long countByOrderDateRange(@Param("starDate") Date starDate, @Param("endDate") Date endDate, @Param("status") String status);


}
